<?php use_helper('I18N') ?>

<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
  <table>
    <tbody>
      <?php echo $form ?>
    </tbody>
    <tfoot>
      <tr>
		<td></td>
        <td colspan="2">
          <input type="submit" value="<?php echo __('Connecter', null, 'sf_guard') ?>" />
		 </td></tr>
	  <tr>
		<td></td>
		<td>
          <?php $routes = $sf_context->getRouting()->getRoutes() ?>
          <?php if (isset($routes['sf_guard_forgot_password'])): ?>
            <a href="<?php echo url_for('@sf_guard_forgotpassword') ?>"><?php echo __('Oublier le mot de passe?', null, 'sf_guard') ?></a>
          <?php endif; ?>
		</td>  
		<td>
          <?php if (isset($routes['sf_guard_register'])): ?>
            &nbsp; <a href="<?php echo url_for('@sf_guard_register') ?>"><?php echo __('Registrer?', null, 'sf_guard') ?></a>
          <?php endif; ?>
        </td>
      </tr>
    </tfoot>
  </table>
</form>